package com.bestow.basic.mapper;

import java.util.List;
import com.bestow.basic.domain.FndCodingRuleDetails;
import org.apache.ibatis.annotations.Param;

/**
 * 编码规则明细Mapper接口
 * 
 * @author liliu
 * @date 2022-09-03
 */
public interface FndCodingRuleDetailsMapper 
{
    /**
     * 查询编码规则明细
     * 
     * @param codingRuleLineId 编码规则明细主键
     * @return 编码规则明细
     */
    public FndCodingRuleDetails selectFndCodingRuleDetailsByCodingRuleLineId(Long codingRuleLineId);

    /**
     * 查询编码规则明细列表
     * 
     * @param fndCodingRuleDetails 编码规则明细
     * @return 编码规则明细集合
     */
    public List<FndCodingRuleDetails> selectFndCodingRuleDetailsList(FndCodingRuleDetails fndCodingRuleDetails);

    /**
     * 新增编码规则明细
     * 
     * @param fndCodingRuleDetails 编码规则明细
     * @return 结果
     */
    public int insertFndCodingRuleDetails(FndCodingRuleDetails fndCodingRuleDetails);

    /**
     * 修改编码规则明细
     * 
     * @param fndCodingRuleDetails 编码规则明细
     * @return 结果
     */
    public int updateFndCodingRuleDetails(FndCodingRuleDetails fndCodingRuleDetails);

    /**
     * 删除编码规则明细
     * 
     * @param codingRuleLineId 编码规则明细主键
     * @return 结果
     */
    public int deleteFndCodingRuleDetailsByCodingRuleLineId(Long codingRuleLineId);

    /**
     * 批量删除编码规则明细
     * 
     * @param codingRuleLineIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFndCodingRuleDetailsByCodingRuleLineIds(Long[] codingRuleLineIds);

    public FndCodingRuleDetails selectByUk(@Param("segmentType") String segmentType, @Param("codingRuleId") Long codingRuleId);
}
